package com.hmall.common.clients;


import com.hmall.common.pojo.Address;
import com.hmall.common.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("userservice")
public interface UserClients {

    @GetMapping("/address/{addressId}")
    public Address getAddressById(@PathVariable("addressId") Long addressId);


    @GetMapping("/user/get")
    public User getUserById(@RequestParam Long userId);

    @GetMapping("/user/pay")
    public void update(@RequestParam Long status,@RequestParam Long userId );

}
